package com.gui.mianshiya.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gui.mianshiya.model.dto.multiQuestion.MultiQuestionQueryRequest;
import com.gui.mianshiya.model.entity.MultiQuestion;
import com.gui.mianshiya.model.entity.User;

import java.util.ArrayList;

/**
 * @Title: MultiQuestionService
 * @Author quit
 * @Package com.gui.mianshiya.service
 * @Date 2025/5/12 15:41
 * @description:
 */
public interface MultiQuestionService extends IService<MultiQuestion> {
    
    /**
     * 分頁獲取在線測試題目列表
     *
     * @param multiQuestionQueryRequest 查詢條件
     * @return 分頁結果
     */
    Page<MultiQuestion> listMultiQuestionByPage(MultiQuestionQueryRequest multiQuestionQueryRequest);

    /**
     * 校驗題目參數
     *
     * @param multiQuestion 題目信息
     * @param add 是否為新增操作
     */
    void validMultiQuestion(MultiQuestion multiQuestion, boolean add);

    Boolean aiGenerateMultiQuestions(int number, User loginUser, Long questionBankId);
}
